<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<title>员工修改页面</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}" />
<link rel="stylesheet" th:href="@{/css/bootstrap-responsive.min.css}" />
<link rel="stylesheet" th:href="@{/css/colorpicker.css}" />
<link rel="stylesheet" th:href="@{/css/datepicker.css}" />
<link rel="stylesheet" th:href="@{/css/uniform.css}" />
<link rel="stylesheet" th:href="@{/css/select2.css}" />
<link rel="stylesheet" th:href="@{/css/matrix-style.css}" />
<link rel="stylesheet" th:href="@{/css/matrix-media.css}" />
<link rel="stylesheet" th:href="@{/css/bootstrap-wysihtml5.css}" />
<link th:href="@{/font-awesome/css/font-awesome.css}" rel="stylesheet" />
<link th:href='@{http://fonts.googleapis.com/css?family=Open+Sans:400,700,800}' rel='stylesheet' type='text/css'>
</head>
<body>

<!--Header-part-->
<div th:replace="~{commons/commons::header}"/>
<!--close-Header-part-->

<!--top-Header-menu-->
<div th:replace="~{commons/commons::user-nav}"/>
<!--close-top-Header-menu-->


<!--sidebar-menu-->
<div th:replace="~{commons/commons::sidebar}"/>
<!--sidebar-menu-->

<div id="content">
<div id="content-header">
  <div id="breadcrumb"> <a href="../index.html" title="Go to Home" class="tip-bottom "><i class="icon-home"></i> Home</a> <a href="#" class="tip-bottom">Form</a> <a href="#" class="current">添加员工</a> </div>
  <h1>添加员工</h1>
</div>
<div class="container-fluid">
  <hr>
  <div class="row-fluid ">
    <div class="span6 ">
      <div class="widget-box" >
        <div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
          <h5>个人信息</h5>
        </div>
        <div class="widget-content nopadding" >
          <form th:action="@{/update}" th:method="post" class="form-horizontal"><!--post请求标准清楚-->
          <input type="hidden" name="UserID" th:value="${uIdI.getUserID()}">
            <div class="control-group">
              <label class="control-label">userNumber:</label>
              <div class="controls">
                <input type="text" class="span11" placeholder="userNumber" name="userNumber"  th:value="${uIdI.getUserNumber()}"/>
              </div>
            </div><!--userNumber-->

            <div class="control-group">
              <label class="control-label">userName:</label>
              <div class="controls">
                <input type="text" class="span11" placeholder="userName " name="userName" th:value="${uIdI.getUserName()}"/>
              </div>
            </div><!--userName-->


            <div class="control-group">
              <label class="control-label" >性 别</label>
              <div class="controls" >
                <label >
                  <input type="radio"  name="userSex"  value="1" th:checked="${uIdI.getUserSex()==1}"/>男</label>

                <label>
                  <input type="radio" name="userSex"  value="0" th:checked="${uIdI.getUserSex()==0}"/>女</label>
              </div>
            </div><!--性别-->

            <div class="control-group">
              <label class="control-label">userAge:</label>
              <div class="controls">
                <input type="text" class="span11" placeholder="userAge " name="userAge" th:value="${uIdI.getUserAge()}"/>
              </div>
            </div><!--userAge-->

            <div class="control-group">
              <label class="control-label">userTel:</label>
              <div class="controls">
                <input type="text" class="span11" placeholder="userTel " name="userTel" th:value="${uIdI.getUserTel()}"/>
              </div>
            </div><!--userTel-->

            <div class="control-group">
              <label class="control-label">部 门</label>
              <div class="controls">
                <select  name="department.departmentID">

                  <option th:each="dept:${depts}"
                          th:text="${dept.getDepartmentName()}"
                          th:value="${dept.getDepartmentID()}"
                          th:selected="${dept.getDepartmentID()==uIdI.getDepartment().getDepartmentID()}"
                  >
                  </option>
                </select>
              </div>
            </div><!--部门-->

            <div class="control-group">
              <label class="control-label">dimissionTime:</label>
              <div class="controls">
                <input type="text" class="span11" placeholder="eg:2019-01-12" name="dimissionTime"
                       th:value="${#dates.format(uIdI.getDimissionTime(),'yyyy-MM-dd')}"/>
              </div>
            </div><!--dimissionTime-->

            <div class="control-group">
              <label class="control-label">basePay:</label>
              <div class="controls">
                <input type="text" class="span11" placeholder="basePay  " name="basePay" th:value="${uIdI.getBasePay()}" />
              </div>
            </div><!--basePay-->



            <div class="form-actions">
              <button type="submit" class="btn btn-success pull-right">保 存</button>
            </div><!--提交按键-->

          </form>
        </div>
      </div>
    </div>
  </div>
</div>
</div>
<!--Footer-part-->
<div class="row-fluid">
  <div id="footer" class="span12">Copyright &copy; 2018.Company name All rights reserved.<a target="_blank" href="http://sc.chinaz.com/moban/">&#x7F51;&#x9875;&#x6A21;&#x677F;</a></div>
</div>
<!--end-Footer-part--> 
<script th:src="@{js/jquery.min.js}"></script>
<script th:src="@{js/jquery.ui.custom.js}"></script>
<script th:src="@{js/bootstrap.min.js}"></script>
<script th:src="@{js/bootstrap-colorpicker.js}"></script>
<script th:src="@{js/bootstrap-datepicker.js}"></script>
<script th:src="@{js/jquery.toggle.buttons.html}"></script>
<script th:src="@{js/masked.js}"></script>
<script th:src="@{js/jquery.uniform.js}"></script>
<script th:src="@{js/select2.min.js}"></script>
<script th:src="@{js/matrix.js}"></script>
<script th:src="@{js/matrix.form_common.js}"></script>
<script th:src="@{js/wysihtml5-0.3.0.js}"></script>
<script th:src="@{js/jquery.peity.min.js}"></script>
<script th:src="@{js/bootstrap-wysihtml5.js}"></script>
<script>
	$('.textarea_editor').wysihtml5();
</script>
</body>
</html>
